package com.voltmao.persistent.model;

import java.util.ArrayList;
import java.util.List;

public class DocApplyAuditCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer limitStart;

    protected Integer pageSize;

    public DocApplyAuditCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(Integer limitStart) {
        this.limitStart=limitStart;
    }

    public Integer getLimitStart() {
        return limitStart;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDataIdIsNull() {
            addCriterion("data_id is null");
            return (Criteria) this;
        }

        public Criteria andDataIdIsNotNull() {
            addCriterion("data_id is not null");
            return (Criteria) this;
        }

        public Criteria andDataIdEqualTo(String value) {
            addCriterion("data_id =", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotEqualTo(String value) {
            addCriterion("data_id <>", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThan(String value) {
            addCriterion("data_id >", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThanOrEqualTo(String value) {
            addCriterion("data_id >=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThan(String value) {
            addCriterion("data_id <", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThanOrEqualTo(String value) {
            addCriterion("data_id <=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLike(String value) {
            addCriterion("data_id like", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotLike(String value) {
            addCriterion("data_id not like", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdIn(List<String> values) {
            addCriterion("data_id in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotIn(List<String> values) {
            addCriterion("data_id not in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdBetween(String value1, String value2) {
            addCriterion("data_id between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotBetween(String value1, String value2) {
            addCriterion("data_id not between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andForDirZlshztIsNull() {
            addCriterion("for_dir_zlshzt is null");
            return (Criteria) this;
        }

        public Criteria andForDirZlshztIsNotNull() {
            addCriterion("for_dir_zlshzt is not null");
            return (Criteria) this;
        }

        public Criteria andForDirZlshztEqualTo(String value) {
            addCriterion("for_dir_zlshzt =", value, "forDirZlshzt");
            return (Criteria) this;
        }

        public Criteria andForDirZlshztNotEqualTo(String value) {
            addCriterion("for_dir_zlshzt <>", value, "forDirZlshzt");
            return (Criteria) this;
        }

        public Criteria andForDirZlshztGreaterThan(String value) {
            addCriterion("for_dir_zlshzt >", value, "forDirZlshzt");
            return (Criteria) this;
        }

        public Criteria andForDirZlshztGreaterThanOrEqualTo(String value) {
            addCriterion("for_dir_zlshzt >=", value, "forDirZlshzt");
            return (Criteria) this;
        }

        public Criteria andForDirZlshztLessThan(String value) {
            addCriterion("for_dir_zlshzt <", value, "forDirZlshzt");
            return (Criteria) this;
        }

        public Criteria andForDirZlshztLessThanOrEqualTo(String value) {
            addCriterion("for_dir_zlshzt <=", value, "forDirZlshzt");
            return (Criteria) this;
        }

        public Criteria andForDirZlshztLike(String value) {
            addCriterion("for_dir_zlshzt like", value, "forDirZlshzt");
            return (Criteria) this;
        }

        public Criteria andForDirZlshztNotLike(String value) {
            addCriterion("for_dir_zlshzt not like", value, "forDirZlshzt");
            return (Criteria) this;
        }

        public Criteria andForDirZlshztIn(List<String> values) {
            addCriterion("for_dir_zlshzt in", values, "forDirZlshzt");
            return (Criteria) this;
        }

        public Criteria andForDirZlshztNotIn(List<String> values) {
            addCriterion("for_dir_zlshzt not in", values, "forDirZlshzt");
            return (Criteria) this;
        }

        public Criteria andForDirZlshztBetween(String value1, String value2) {
            addCriterion("for_dir_zlshzt between", value1, value2, "forDirZlshzt");
            return (Criteria) this;
        }

        public Criteria andForDirZlshztNotBetween(String value1, String value2) {
            addCriterion("for_dir_zlshzt not between", value1, value2, "forDirZlshzt");
            return (Criteria) this;
        }

        public Criteria andForDocApplyIsNull() {
            addCriterion("for_doc_apply is null");
            return (Criteria) this;
        }

        public Criteria andForDocApplyIsNotNull() {
            addCriterion("for_doc_apply is not null");
            return (Criteria) this;
        }

        public Criteria andForDocApplyEqualTo(String value) {
            addCriterion("for_doc_apply =", value, "forDocApply");
            return (Criteria) this;
        }

        public Criteria andForDocApplyNotEqualTo(String value) {
            addCriterion("for_doc_apply <>", value, "forDocApply");
            return (Criteria) this;
        }

        public Criteria andForDocApplyGreaterThan(String value) {
            addCriterion("for_doc_apply >", value, "forDocApply");
            return (Criteria) this;
        }

        public Criteria andForDocApplyGreaterThanOrEqualTo(String value) {
            addCriterion("for_doc_apply >=", value, "forDocApply");
            return (Criteria) this;
        }

        public Criteria andForDocApplyLessThan(String value) {
            addCriterion("for_doc_apply <", value, "forDocApply");
            return (Criteria) this;
        }

        public Criteria andForDocApplyLessThanOrEqualTo(String value) {
            addCriterion("for_doc_apply <=", value, "forDocApply");
            return (Criteria) this;
        }

        public Criteria andForDocApplyLike(String value) {
            addCriterion("for_doc_apply like", value, "forDocApply");
            return (Criteria) this;
        }

        public Criteria andForDocApplyNotLike(String value) {
            addCriterion("for_doc_apply not like", value, "forDocApply");
            return (Criteria) this;
        }

        public Criteria andForDocApplyIn(List<String> values) {
            addCriterion("for_doc_apply in", values, "forDocApply");
            return (Criteria) this;
        }

        public Criteria andForDocApplyNotIn(List<String> values) {
            addCriterion("for_doc_apply not in", values, "forDocApply");
            return (Criteria) this;
        }

        public Criteria andForDocApplyBetween(String value1, String value2) {
            addCriterion("for_doc_apply between", value1, value2, "forDocApply");
            return (Criteria) this;
        }

        public Criteria andForDocApplyNotBetween(String value1, String value2) {
            addCriterion("for_doc_apply not between", value1, value2, "forDocApply");
            return (Criteria) this;
        }

        public Criteria andForCorpEmployesUserIsNull() {
            addCriterion("for_corp_employes_user is null");
            return (Criteria) this;
        }

        public Criteria andForCorpEmployesUserIsNotNull() {
            addCriterion("for_corp_employes_user is not null");
            return (Criteria) this;
        }

        public Criteria andForCorpEmployesUserEqualTo(String value) {
            addCriterion("for_corp_employes_user =", value, "forCorpEmployesUser");
            return (Criteria) this;
        }

        public Criteria andForCorpEmployesUserNotEqualTo(String value) {
            addCriterion("for_corp_employes_user <>", value, "forCorpEmployesUser");
            return (Criteria) this;
        }

        public Criteria andForCorpEmployesUserGreaterThan(String value) {
            addCriterion("for_corp_employes_user >", value, "forCorpEmployesUser");
            return (Criteria) this;
        }

        public Criteria andForCorpEmployesUserGreaterThanOrEqualTo(String value) {
            addCriterion("for_corp_employes_user >=", value, "forCorpEmployesUser");
            return (Criteria) this;
        }

        public Criteria andForCorpEmployesUserLessThan(String value) {
            addCriterion("for_corp_employes_user <", value, "forCorpEmployesUser");
            return (Criteria) this;
        }

        public Criteria andForCorpEmployesUserLessThanOrEqualTo(String value) {
            addCriterion("for_corp_employes_user <=", value, "forCorpEmployesUser");
            return (Criteria) this;
        }

        public Criteria andForCorpEmployesUserLike(String value) {
            addCriterion("for_corp_employes_user like", value, "forCorpEmployesUser");
            return (Criteria) this;
        }

        public Criteria andForCorpEmployesUserNotLike(String value) {
            addCriterion("for_corp_employes_user not like", value, "forCorpEmployesUser");
            return (Criteria) this;
        }

        public Criteria andForCorpEmployesUserIn(List<String> values) {
            addCriterion("for_corp_employes_user in", values, "forCorpEmployesUser");
            return (Criteria) this;
        }

        public Criteria andForCorpEmployesUserNotIn(List<String> values) {
            addCriterion("for_corp_employes_user not in", values, "forCorpEmployesUser");
            return (Criteria) this;
        }

        public Criteria andForCorpEmployesUserBetween(String value1, String value2) {
            addCriterion("for_corp_employes_user between", value1, value2, "forCorpEmployesUser");
            return (Criteria) this;
        }

        public Criteria andForCorpEmployesUserNotBetween(String value1, String value2) {
            addCriterion("for_corp_employes_user not between", value1, value2, "forCorpEmployesUser");
            return (Criteria) this;
        }

        public Criteria andAuditReasonIsNull() {
            addCriterion("audit_reason is null");
            return (Criteria) this;
        }

        public Criteria andAuditReasonIsNotNull() {
            addCriterion("audit_reason is not null");
            return (Criteria) this;
        }

        public Criteria andAuditReasonEqualTo(String value) {
            addCriterion("audit_reason =", value, "auditReason");
            return (Criteria) this;
        }

        public Criteria andAuditReasonNotEqualTo(String value) {
            addCriterion("audit_reason <>", value, "auditReason");
            return (Criteria) this;
        }

        public Criteria andAuditReasonGreaterThan(String value) {
            addCriterion("audit_reason >", value, "auditReason");
            return (Criteria) this;
        }

        public Criteria andAuditReasonGreaterThanOrEqualTo(String value) {
            addCriterion("audit_reason >=", value, "auditReason");
            return (Criteria) this;
        }

        public Criteria andAuditReasonLessThan(String value) {
            addCriterion("audit_reason <", value, "auditReason");
            return (Criteria) this;
        }

        public Criteria andAuditReasonLessThanOrEqualTo(String value) {
            addCriterion("audit_reason <=", value, "auditReason");
            return (Criteria) this;
        }

        public Criteria andAuditReasonLike(String value) {
            addCriterion("audit_reason like", value, "auditReason");
            return (Criteria) this;
        }

        public Criteria andAuditReasonNotLike(String value) {
            addCriterion("audit_reason not like", value, "auditReason");
            return (Criteria) this;
        }

        public Criteria andAuditReasonIn(List<String> values) {
            addCriterion("audit_reason in", values, "auditReason");
            return (Criteria) this;
        }

        public Criteria andAuditReasonNotIn(List<String> values) {
            addCriterion("audit_reason not in", values, "auditReason");
            return (Criteria) this;
        }

        public Criteria andAuditReasonBetween(String value1, String value2) {
            addCriterion("audit_reason between", value1, value2, "auditReason");
            return (Criteria) this;
        }

        public Criteria andAuditReasonNotBetween(String value1, String value2) {
            addCriterion("audit_reason not between", value1, value2, "auditReason");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = "doc_apply_audit."+condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = "doc_apply_audit."+condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = "doc_apply_audit."+condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}